import Vue from "vue";
import VueRouter from "vue-router";
Vue.use(VueRouter);
import Home from "../pages/Home"
import Login from "../pages/Login"

// 路由配置：路径和组件的对应关系
let routes = [
    {
        path:"/Home",
        component:Home
    },
    {
        path:"/Login",
        component:Login
    }
]

// 创建Vue-router对象
export default new VueRouter({
    routes:routes
});